package com.tool.websocket.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author 酒徒
 * @Version 1.0
 * @data 2024/1/23 20:02
 * WebSocket配置类，用于注册WebSocket的Bean  使得这些端点能够被WebSocket服务器调度和处理客户端的请求
 * ServerEndpointExporter需要导入websocket依赖
 */

@Configuration
public class WebSocketConfiguration {

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}